\hypertarget{class_political_classifier_1_1_web_1_1_mvc_application}{\section{Political\-Classifier.\-Web.\-Mvc\-Application Class Reference}
\label{class_political_classifier_1_1_web_1_1_mvc_application}\index{Political\-Classifier.\-Web.\-Mvc\-Application@{Political\-Classifier.\-Web.\-Mvc\-Application}}
}


Defines events for the M\-V\-C application.  


Inheritance diagram for Political\-Classifier.\-Web.\-Mvc\-Application\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_political_classifier_1_1_web_1_1_mvc_application}
\end{center}
\end{figure}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_political_classifier_1_1_web_1_1_mvc_application_a3573fd6a4e73e99aa6e5495d2f8db0d8}{Application\-\_\-\-Start} ()
\begin{DoxyCompactList}\small\item\em Initializes the M\-V\-C application. \end{DoxyCompactList}\item 
void \hyperlink{class_political_classifier_1_1_web_1_1_mvc_application_ac4e4234b7a6be9bc9926f33d87579a00}{Application\-\_\-\-Error} (object sender, Event\-Args args)
\begin{DoxyCompactList}\small\item\em Handles errors in the M\-V\-C application. \end{DoxyCompactList}\item 
void \hyperlink{class_political_classifier_1_1_web_1_1_mvc_application_a8e52fa987fdb046a6596c4808bbe0e40}{Application\-\_\-\-End} ()
\begin{DoxyCompactList}\small\item\em Finalizes the application. \end{DoxyCompactList}\item 
void \hyperlink{class_political_classifier_1_1_web_1_1_mvc_application_af6d190dcb33b7a004a88f46948e7fbd7}{Session\-\_\-\-End} ()
\begin{DoxyCompactList}\small\item\em Finalizes a user session. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Defines events for the M\-V\-C application. 

This class is responsible for initializing and finalizing the M\-V\-C application. During finalization, any lingering data files are deleted. 

\subsection{Member Function Documentation}
\hypertarget{class_political_classifier_1_1_web_1_1_mvc_application_a8e52fa987fdb046a6596c4808bbe0e40}{\index{Political\-Classifier\-::\-Web\-::\-Mvc\-Application@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}!Application\-\_\-\-End@{Application\-\_\-\-End}}
\index{Application\-\_\-\-End@{Application\-\_\-\-End}!PoliticalClassifier::Web::MvcApplication@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}}
\subsubsection[{Application\-\_\-\-End}]{\setlength{\rightskip}{0pt plus 5cm}void Political\-Classifier.\-Web.\-Mvc\-Application.\-Application\-\_\-\-End (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}}\label{class_political_classifier_1_1_web_1_1_mvc_application_a8e52fa987fdb046a6596c4808bbe0e40}


Finalizes the application. 

On application shutdown, this method cleans up any uploaded files in the data directory. \hypertarget{class_political_classifier_1_1_web_1_1_mvc_application_ac4e4234b7a6be9bc9926f33d87579a00}{\index{Political\-Classifier\-::\-Web\-::\-Mvc\-Application@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}!Application\-\_\-\-Error@{Application\-\_\-\-Error}}
\index{Application\-\_\-\-Error@{Application\-\_\-\-Error}!PoliticalClassifier::Web::MvcApplication@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}}
\subsubsection[{Application\-\_\-\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void Political\-Classifier.\-Web.\-Mvc\-Application.\-Application\-\_\-\-Error (
\begin{DoxyParamCaption}
\item[{object}]{sender, }
\item[{Event\-Args}]{args}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}}\label{class_political_classifier_1_1_web_1_1_mvc_application_ac4e4234b7a6be9bc9926f33d87579a00}


Handles errors in the M\-V\-C application. 

The error handling checks for the error where a posted file exceeds the maximum request length limit. When this error occurs, this handler clears the error and redirects the user to a custom view, which contains a user-\/friendly message and a field for uploading a new file. 


\begin{DoxyParams}{Parameters}
{\em sender} & Error source.\\
\hline
{\em args} & Event arguments.\\
\hline
\end{DoxyParams}
\hypertarget{class_political_classifier_1_1_web_1_1_mvc_application_a3573fd6a4e73e99aa6e5495d2f8db0d8}{\index{Political\-Classifier\-::\-Web\-::\-Mvc\-Application@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}!Application\-\_\-\-Start@{Application\-\_\-\-Start}}
\index{Application\-\_\-\-Start@{Application\-\_\-\-Start}!PoliticalClassifier::Web::MvcApplication@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}}
\subsubsection[{Application\-\_\-\-Start}]{\setlength{\rightskip}{0pt plus 5cm}void Political\-Classifier.\-Web.\-Mvc\-Application.\-Application\-\_\-\-Start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}}\label{class_political_classifier_1_1_web_1_1_mvc_application_a3573fd6a4e73e99aa6e5495d2f8db0d8}


Initializes the M\-V\-C application. 

\hypertarget{class_political_classifier_1_1_web_1_1_mvc_application_af6d190dcb33b7a004a88f46948e7fbd7}{\index{Political\-Classifier\-::\-Web\-::\-Mvc\-Application@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}!Session\-\_\-\-End@{Session\-\_\-\-End}}
\index{Session\-\_\-\-End@{Session\-\_\-\-End}!PoliticalClassifier::Web::MvcApplication@{Political\-Classifier\-::\-Web\-::\-Mvc\-Application}}
\subsubsection[{Session\-\_\-\-End}]{\setlength{\rightskip}{0pt plus 5cm}void Political\-Classifier.\-Web.\-Mvc\-Application.\-Session\-\_\-\-End (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}}\label{class_political_classifier_1_1_web_1_1_mvc_application_af6d190dcb33b7a004a88f46948e7fbd7}


Finalizes a user session. 

On session end, this method cleans up the user uploaded file in the data directory. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
C\-:/\-Users/\-Jonathan.\-De\-Carlo/\-Source/\-Repos/\-Political\-Classifier/src/\-Political\-Classifier.\-Web/Global.\-asax.\-cs\end{DoxyCompactItemize}
